# _*_ coding:utf-8 _*_
import requests, time

s = requests.session()
data = [
    ('opr', 'pwdLogin'),
    ('userName', '02867'),
    ('pwd', '0503Yin@'),
    ('rememberPwd', '0'),
]
while True:
    # time.sleep(100)
    # 每隔10分钟执行一次；
    time.sleep(600)
    res = s.post("http://cms.msdi.cn/main", data)
    print(res.status_code)
